package com.vvv.designpattern.transaction.colleague;

import com.vvv.designpattern.transaction.mediator.AbstractMediator;

/**
 * @author vvv
 * @date 2023-11-25 17 06
 * discription中介者模式：
 */
public class Payer extends AbstractCustomer{
    public Payer(AbstractMediator mediator, String orderId, String customerName) {
        super(mediator, orderId, customerName);
    }

    @Override
    public void messageTransfer(String orderId, String targetCustomer, String payResult) {
        mediator.messageTransfer(orderId, targetCustomer, this, payResult);
    }
}
